﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CustomerManage_CallManage" Codebehind="CallManage.aspx.cs" %>

<%@ Register Assembly="CutPageBar" Namespace="SiteCommon" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>客户来电管理</title>
    <link type="text/css" rel="Stylesheet" href="css/admin.css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div style="overflow: scroll">
                <table align="center" class="lyf">
                    <tr>
                        <td colspan="100">
                            <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="100" align="left">
                            客户来电记录管理<input id="Hid_Search" type="hidden"  runat="server" value="0"/></th>
                    </tr>
                    <tr>
                        <td colspan="100" align="left">
                            <table>
                                <tr>
                                    <td>
                                        大类：<asp:DropDownList ID="DDL_DL" runat="server">
                                        </asp:DropDownList></td>
                                    <td>
                                        记录编号：<asp:TextBox ID="Tbx_NO" runat="server"></asp:TextBox></td>
                                    <td>
                                        用户关键字：<asp:DropDownList ID="DDL_CustomerAttention" runat="server">
                                            <asp:ListItem>请选择</asp:ListItem>
                                            <asp:ListItem Value="RD_USERCODE">会员代码</asp:ListItem>
                                            <asp:ListItem Value="RD_NAME">注册电话</asp:ListItem>
                                            <asp:ListItem Value="Email">注册邮箱</asp:ListItem>
                                        </asp:DropDownList><asp:TextBox ID="Tbx_AttentionContent" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        关注分类：<asp:DropDownList ID="DDL_AttentionType" runat="server">
                                        </asp:DropDownList>
                                        <asp:TextBox ID="Tbx_Attentiontext" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                        客服人员：<asp:DropDownList ID="DDL_CustomerSerice" runat="server">
                                            <asp:ListItem Value="-1">请选择</asp:ListItem>
                                            <asp:ListItem Value="1">客服号</asp:ListItem>
                                            <asp:ListItem Value="0">坐席号</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:TextBox ID="Tbx_Service" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                        状态：<asp:DropDownList ID="DDL_Status" runat="server">
                                            <asp:ListItem Value="-1">请选择</asp:ListItem>
                                            <asp:ListItem Value="0">当即处理</asp:ListItem>
                                            <asp:ListItem Value="1">待处理</asp:ListItem>
                                            <asp:ListItem Value="2">待处理完毕</asp:ListItem>
                                        </asp:DropDownList></td>
                                    <td>
                                        <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" /></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <th>
                            来电类型</th>
                        <th>
                            记录编号</th>
                        <th>
                            关联编号</th>
                            <th>
                            处理情况</th>
                        <th>
                            时间</th>
                        <th>
                            客户编号</th>
                        <th>
                            客户姓名</th>
                        <th>
                            Email</th>
                        <th>
                            来电号码</th>
                        <th>
                            座席号</th>
                        <th>
                            电话</th>
                        <th>
                            手机</th>
                        <th>
                            住址</th>
                        <th>
                            关注分类</th>
                        
                        <th>
                            完结时间</th>
                        <th>
                            操作</th>
                    </tr>
                    <asp:Repeater ID="rpList" runat="server" OnItemCommand="rpList_ItemCommand">
                        <ItemTemplate>
                            <tr>
                            <td>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Look" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "RD_ID")%>'>查看</asp:LinkButton></td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "MyRecordType.RT_Name")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "RD_ID")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "BYZD6")%>
                                </td>
                                <td>
                                    <%#GetStatus(DataBinder.Eval(Container.DataItem, "BYZD5").ToString())%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "TD_TIME")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "RD_UserCode")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "RD_Name")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "Email")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "CallPhone")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "CallPositionNo")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "Tel")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "MobilePhone")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "Address")%>
                                </td>
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "BYZD4")%>
                                </td>
                                
                                <td>
                                    <%#DataBinder.Eval(Container.DataItem, "BYZD7")%>
                                </td>
                                <td>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "RD_ID")%>'
                                        Visible='<%#Eval("BYZD5").ToString()=="1"?true:false%>'>处理</asp:LinkButton></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <table align="center" width="90%" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <cc1:CutPageBar ID="CutPageBar1" runat="server" ShowCount="True" PageSize="15" OnOnPageIndexChanged="CutPage" />
                    </td>
                </tr>
            </table>
            <table align="center" class="gjh">
                <tr>
                    <th colspan="2" align="left">
                        添加来电记录</th>
                </tr>
                <tr>
                    <td>
                        来电号码</td>
                    <td>
                        <asp:TextBox ID="txtCallPhone" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        来电类型</td>
                    <td>
                        <asp:DropDownList ID="ddlRecordType" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td>
                        客户编号</td>
                    <td>
                        <asp:TextBox ID="txtUserCode" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        客户名称</td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        邮箱</td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        电话</td>
                    <td>
                        <asp:TextBox ID="txtTel" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        手机</td>
                    <td>
                        <asp:TextBox ID="txtMobilePhone" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        地址</td>
                    <td>
                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        关注分类</td>
                    <td>
                        <asp:DropDownList ID="DDLAttentionCategory" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="Tbx_AttentionCategory" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        操作人</td>
                    <td>
                        <asp:DropDownList ID="DDLOperateType" runat="server">
                            <asp:ListItem Value="-1" Text="请选择"></asp:ListItem>
                            <asp:ListItem Value="0" Text="坐席号" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="1" Text="客服号"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="txtOperater" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        关联通话</td>
                    <td>
                        <asp:CheckBox ID="CKB_GuanLian" runat="server" />
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        处理情况</td>
                    <td>
                        <asp:DropDownList ID="DDStatus" runat="server">
                            <asp:ListItem Value="0" Text="当即处理"></asp:ListItem>
                            <asp:ListItem Value="1" Text="待处理"></asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnSubmit" runat="server" Text="添加来电记录" Width="200px" OnClick="btnSubmit_Click" />
                        <asp:Button ID="btnClear" runat="server" Text="清空数据" Width="200px" OnClick="btnClear_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
